import request from "@/utils/request";


export interface HistoryData {
    code: number;
    data: Data;
    value: string;
}

export interface Data {
    content: Content[];
    number: number;
    numberOfElements: number;
    size: string;
    sort: null;
    statistics: null;
    totalElements: number;
    totalPages: number;
    useOffset: boolean;
}

export interface Content {
    createTime: number;
    creator: string;
    id: string;
    momentBackup: MomentBackup;
    momentId: string;
    momentSubject: string;
    momentTitle: string;
    updateTime: number;
}

export interface MomentBackup {
    cover: string[];
    creator: string;
    creatorBackup: CreatorBackup;
    momentClassificationBackup: MomentClassificationBackup;
    router: string;
}

export interface CreatorBackup {
    avatar: string;
    certificationType: string;
    id: string;
    level: number;
    name: string;
    vipExpireTime: number;
    vipGrade: number;
}

export interface MomentClassificationBackup {
    classification?: string;
    workTitle: string;
}

// 获取视频信息
export const reqgetDanceInfo = (pageNum:number,pageSize:number)=>{
    return request.get<null,Data>(`/moment/viewRecords?pageSize=${pageNum}&pageNum=${pageSize}`);
}